/*
 * Copyright 2025 The JA-SIG Collaborative. All rights reserved.
 * distributed with this file and available online at
 */
package com.lap.auth.domain.api.repository;

import com.lap.auth.domain.api.Api;
import java.util.List;

/**
 * API接口仓储接口
 *
 * @author Shuisheng Lao(劳水生)
 * @version 0.0.1
 */
public interface ApiRepository {

  void saveAll(List<Api> list);

  void deleteByModule(String module);

  List<Api> findList();

  /**
   * 根据角色获取接口权限
   *
   * @param roleIds 角色ID
   * @return 接口集合
   */
  List<Api> findInsideByRoleIds(List<Integer> roleIds);
}
